package com.xiaofengstu.mcams.util;

/**
 * @Author FengZeng
 * @Date 2022-05-12 21:05
 * @Description TODO
 */
public class ThreadLocalUtils {
  private static ThreadLocal<Integer> tl = new ThreadLocal<>();

  public static void set(Integer userId){
    tl.set(userId);
  }

  public static Integer get(){
    return tl.get();
  }

  public static void remove() {
    tl.remove();
  }

}
